//
//  HJChatMessageManagerProtocol.h
//  KaiChat
//
//  Created by lx on 2023/10/20.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@class HJChatMessageModel;

@protocol HJChatMessageManagerProtocol <NSObject>

@optional

- (void)loadMessageDatasBySessionId:(NSString*)sessionId pageSize:(NSInteger)pageSize pageNumber:(NSInteger)pageNumber completion:(void (^__nullable)(NSArray *messages))completion;
- (BOOL)deleteMessagesBySessionId:(NSString*)sessionId messageId:(NSString *)messageId;
- (HJChatMessageModel *)queryMessageBySessionId:(NSString*)sessionId messageId:(NSString *)messageId;
- (void)clearHistoryBySessionId:(NSString*)sessionId completion:(void (^__nullable)(BOOL result))completion;
- (void)searchSendingMessageCompletion:(void (^__nullable)(NSArray *messages))completion;
- (void)loadOfflineMessageCompletion:(void (^__nullable)(NSArray *messages))completion;

@end

NS_ASSUME_NONNULL_END
